using UnityEngine;
using UnityEngine.UI;

namespace PKGames
{
	public sealed class TwoLineGameGridLayouter : HorizontalGridLayouter
	{
		private const float _minAspectRatio = 1.33333337f;

		private const float _maxAspectRatio = 1.77777779f;

		private const float _minCellSizeProportion = 0.28f;

		private const float _maxCellSizeProportion = 0.3226f;

		private const float _minCellHorizontalSpaceProportion = 0.06654586f;

		private const float _maxCellHorizontalSpaceProportion = 0.06664916f;

		private const float _minCellVerticalSpaceProportion = 0.05721f;

		private const float _maxCellVerticalSpaceProportion = 0.05729f;

		private const float _minTopMarginProportion = 0.18f;

		private const float _maxTopMarginProportion = 0.18f;

		private const float _minBottomMarginProportion = 0.1173f;

		private const float _maxBottomMarginProportion = 0.0773f;

		private const float _minHorizontalMarginProportion = 0.22f;

		private const float _maxHorizontalMarginProportion = 0.2f;

		public override float MinAspectRatio => 1.33333337f;

		public override float MaxAspectRatio => 1.77777779f;

		public override float MinCellSizeProportion => 0.28f;

		public override float MaxCellSizeProportion => 0.3226f;

		public override float MinCellHorizontalSpaceProportion => 0.06654586f;

		public override float MaxCellHorizontalSpaceProportion => 0.06664916f;

		public override float MinCellVerticalSpaceProportion => 0.05721f;

		public override float MaxCellVerticalSpaceProportion => 0.05729f;

		public override float MinTopMarginProportion => 0.18f;

		public override float MaxTopMarginProportion => 0.18f;

		public override float MinBottomMarginProportion => 0.1173f;

		public override float MaxBottomMarginProportion => 0.0773f;

		public override float MinHorizontalMarginProportion => 0.22f;

		public override float MaxHorizontalMarginProportion => 0.2f;

		public TwoLineGameGridLayouter(RectTransform cellAnchor, GridLayoutGroup cellGrid, RectTransform content, float numberOfCells, RectTransform viewport)
		{
			base.cellAnchor = cellAnchor;
			base.cellGrid = cellGrid;
			base.content = content;
			base.numberOfCells = numberOfCells;
			base.viewport = viewport;
		}
	}
}
